﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="FunctionPage_Add.aspx.cs" Inherits="Admin_Form_FunctionPage_Add" MasterPageFile="/Admin/MasterPage.master" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:Content ContentPlaceHolderID="ContentPlaceHolder1" ID="content" runat="server">
    <telerik:RadWindowManager runat="server" ID="window1">
        <Windows>
             <telerik:RadWindow runat="server" Width="400px" Height="400px" VisibleStatusbar="false"
                NavigateUrl="FileManager.aspx" ID="ExplorerWindow" Modal="true" >
            </telerik:RadWindow>
        </Windows>
    </telerik:RadWindowManager>
    <fieldset>
        <legend style="padding: 10px 20px 10px">
            <h3 style="color: #3333FF; font-size:large">QUẢN TRỊ TRANG CHỨC NĂNG</h3></legend>
        <div style="text-align:center; font-size:larger">
         <asp:Label runat="server" CssClass="AdminMessage" ID="lblMessage"> </asp:Label></div>
        <input type="hidden" id="txtFunctionPageID" runat="server" />
        <table style="text-align:left;">
            <tr> 
                <td style="width:120px">Tên Trang</td>
                <td><asp:TextBox CssClass="AdminTextbox" runat="server" ID="txtFunctionPageName"></asp:TextBox></td>
                <td><asp:RequiredFieldValidator runat="server" ID="require1" ControlToValidate="txtFunctionPageName"></asp:RequiredFieldValidator></td>
            </tr>
            
            <tr>
                <td style="width:120px">Tiêu đề trang</td>
                <td>
                    <asp:TextBox CssClass="AdminTextbox" ID="txtFunctionPageTitle" runat="server"></asp:TextBox>
                </td>
                <td>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                        ErrorMessage="Tiêu đề trang" 
                        ControlToValidate="txtFunctionPageTitle"></asp:RequiredFieldValidator>
                </td>
            </tr>
            
            <tr>
                <td style="width:120px">Mô Tả Trang</td>
                <td>
                    <telerik:RadEditor ID="txtFunctionPageDescription" runat="server"></telerik:RadEditor>
                </td>
                <td>&nbsp;</td>
            </tr>
            
            <tr>
                <td style="width:120px">Ảnh Đại Diện</td>
                <td>
                    <asp:TextBox CssClass="AdminTextbox" ID="txtFunctionPageImage" runat="server"></asp:TextBox>
                    <asp:Button ID="selectFile" OnClientClick="openRadWindow('FileManager.aspx?control=txtFunctionPageImage','ExplorerWindow'); return false;" Text="Open... " runat="server" />
                </td>
                <td></td>
            </tr>
            
            <tr runat="server" id="trIcon" visible="false">
                <td style="width:120px">Icon</td>
                <td>
                    <asp:TextBox CssClass="AdminTextbox" ID="txtFunctionPageIcon" runat="server"></asp:TextBox>
                    <asp:Button ID="Button1" OnClientClick="openRadWindow('FileManager.aspx?control=txtFunctionPageIcon','ExplorerWindow'); return false;" Text="Open... " runat="server" />
                </td>
                <td></td>
            </tr>
            
            <tr>
                <td style="width:120px">
                    Meta Keyword
                </td>
                <td>
                    <asp:TextBox CssClass="AdminTextbox" ID="txtMetaKeyword" runat="server"></asp:TextBox>
                </td>
                <td>
                </td>
            </tr>
            
            <tr>
                <td style="width:120px">
                    Meta Description
                </td>
                <td>
                    <asp:TextBox CssClass="AdminTextbox" ID="txtMetaDescription" runat="server"></asp:TextBox>
                </td>
                <td>
                </td>
            </tr>
            
            <tr>
                <td style="width:120px">Hiển Thị</td>
                <td>
                    <asp:CheckBox ID="chkIsVisible" runat="server" />
                </td>
                <td></td>
            </tr>
            
            <tr>
                <td style="width:120px">Cho Phép Xóa</td>
                <td>
                    <asp:CheckBox ID="chkIsAllowDelete" runat="server" />
                </td>
                <td></td>
            </tr>
            
            <tr>
               <td style="width:120px">
                    Thứ Tự Hiển Thị
                </td>
                <td>
                    <telerik:RadNumericTextBox ID="txtViewOrder" runat="server">
                    </telerik:RadNumericTextBox>
                </td>
                <td>
                <asp:RequiredFieldValidator ControlToValidate="txtViewOrder" ID="RequiredFieldValidator2" runat="server" ErrorMessage="Bạn Phải Nhập Thứ Tự Hiển Thị"></asp:RequiredFieldValidator>
                </td>
            </tr>
            
            <tr runat="server" id="trCache" visible="false">
                <td style="width:120px">Cache: </td>
                <td>
                    <asp:CheckBox ID="chkIsCache" runat="server" />
                </td>
                <td></td>
            </tr>
            
            <tr runat="server" id="trCacheTime" visible="false">
                <td style="width:120px">
                   Thời Gian Cache
                </td>
                <td>
                    <asp:TextBox CssClass="AdminTextbox" Text="0" ID="txtCacheTime" runat="server"></asp:TextBox>
                </td>
                <td>
                </td>
            </tr>
            
            <tr>
                <td style="width:120px">
                    Ngôn Ngữ
                </td>
                <td>
                    <asp:DropDownList runat="server" ID="cboLanguage">
                        <asp:ListItem Value="vn" Text="Tiếng Việt" Selected="True"></asp:ListItem>
                        <asp:ListItem Value="jp" Text="Tiếng Nhật"></asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td>
                </td>
            </tr>
            
            <tr>
                <td style="width:120px">
                    Trang Hệ Thống
                </td>
                <td>
                    <asp:CheckBox Text="" ID="chkIsAdmin" runat="server"></asp:CheckBox>
                </td>
                <td>
                </td>
            </tr>
            
            <tr>
                <td style="width:120px">
                    Thuộc Module
                </td>
                <td>
                    <asp:DropDownList DataTextField="PropertyName" DataValueField="PropertyValue" ID="cboFunctionType" runat="server"></asp:DropDownList>
                </td>
                <td>
                </td>
            </tr>
            
            <tr>
                <td>
                    <input type="checkbox" style="width:120px" id="chkNavigate" value="Tự cấu hình điều hướng" onclick="loadNavigate()" />Tự cấu hình điều hướng
                </td>
                <td id="trNavigate">
                    <div id="divNavigate"><asp:TextBox CssClass="AdminTextbox"  DataTextField="ControlPath" DataValueField="ControlPath" ID="txtControlPath" runat="server"></asp:TextBox></div>
                </td>
                <td>
                </td>
            </tr>
            <tr>
                <td colspan="3" align="center">
                    <asp:Button CssClass="AdminSaveButton" runat="server" ID="btnCreate" OnClick="btnCreate_Click" Text="Thêm Mới" />
                    <asp:Button CssClass="AdminCancelButton" runat="server" ID="btnReset" OnClick="btnReset_Click" CausesValidation="false" Text="Quay Lại" />            
                </td>
            </tr>
        </table>
    
       
    </fieldset>
 </asp:Content>   
 
